package uyun;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import uyun.controller.CSHApplicationController;

@RunWith(SpringRunner.class)
@SpringBootTest
public class ApolloDemo {
    /*@Value("${elasticsearch.http.hosts}")
    private String elasticsearch_http_hosts  ;

    @Value("${elasticsearch.cluster.name}")
    private String elasticsearch_cluster_name ;

    @Value("${elasticsearch.hosts}")
    private String elasticsearch_hosts ;

    @Value("${managerUrl}")
    private String managerUrl ;

    @Value("${elasticsearch.http.username}")
    private String elasticsearch_http_username ;

    @Value("${elasticsearch.http.password}")
    private String elasticsearch_http_password ;

    @Test
    public void getElasticsearchConfig(){
        System.out.println("elasticsearch_http_hosts的值是：" + elasticsearch_http_hosts);
        System.out.println("elasticsearch_cluster_name的值是：" + elasticsearch_cluster_name);
        System.out.println("elasticsearch_hosts的值是：" + elasticsearch_hosts);
        System.out.println("managerUrl的值是：" + managerUrl);
        System.out.println("elasticsearch_http_username的值是：" + elasticsearch_http_username);
        System.out.println("elasticsearch_http_password的值是：" + elasticsearch_http_password);
    }*/

    /*@Value("${key_1}")
    private String key1;*/

    @Test
    public void getKey(){
        CSHApplicationController controller = new CSHApplicationController();
        System.out.println(controller.getKey1());
    }

}
